export const PAYMENT_COLUMNS = [
  // { colKey: 'row-select', type: 'multiple', width: 64, fixed: 'left' },
  {
    title: '支付方式',
    align: 'left',
    width: 120,
    colKey: 'paymentChannelText',
    fixed: 'left',
  },

  {
    title: '商户号',
    width: 200,
    ellipsis: true,
    colKey: 'mchId',
  },
  {
    title: '商户类型',
    width: 200,
    ellipsis: true,
    colKey: 'mchTypeText',
  },
  {
    title: '费率',
    width: 100,
    ellipsis: true,
    colKey: 'rate',
  },
{
    title: '私钥文件',
    width: 200,
    ellipsis: true,
    colKey: 'privateKeyCertPath',
  },
  {
    title: '公钥文件',
    width: 200,
    ellipsis: true,
    colKey: 'publicKeyCertPath',
  },
  {
    title: '是否启用',
    width: 200,
    ellipsis: true,
    colKey: 'paymentStatus',
  },

  { title: '是否默认', colKey: 'isDefault', width: 200 },
  
  {
    align: 'left',
    fixed: 'right',
    width: 200,
    colKey: 'op',
    title: '操作',
  },
];




export const FORM_RULES = {
  mchId: [{ required: true, message: '请输入商户号', type: 'error' }],
  paymentChannel: [{ required: true, message: '请选择支付渠道', type: 'error' }],
  mchType: [{ required: true, message: '请选择商户类型', type: 'error' }],
  paymentStatus: [{ required: true, message: '状态', type: 'error' }],
  rate: [{ required: true, message: '请填写费率', type: 'error' }],
  //apiKey: [{ required: true, message: '请填写apikey', type: 'error' }],
  apiKeyV3: [{ required: true, message: '请填写apikeyv3', type: 'error' }],
  publicKeyCertPath: [{ required: true, message: '请填写公钥', type: 'error' }],
  privateKeyCertPath: [{ required: true, message: '请填写私钥', type: 'error' }],
  notifyUrl: [{ required: true, message: '请填写回调地址', type: 'error' }],
};

export const INITIAL_DATA = {
  mchId: '',
  paymentChannel: 1,
  mchType: 0,
  paymentStatus: true,
  rate: 0.6,
  apiKey: '',
  apiKeyV3: '',
  publicKeyCertPath: '',
  privateKeyCertPath: '',
  notifyUrl: '',

};

export const PAYMENT_CHANNEL_OPTIONS = [
  {
    label: '微信支付',
    value: 1,
  },
  {
    label: '支付宝',
    value: 2,
  },
];
export const MCH_TYPE_OPTIONS = [
  {
    label: '普通商户',
    value: 0,
  },
  {
    label: '服务商',
    value: 1,
  },
  {
    label: '银行服务商',
    value: 2,
  },
];
